package com.bw.mvvm_common.mvvm.viewmodel;

import androidx.lifecycle.Lifecycle;
import androidx.lifecycle.LifecycleObserver;
import androidx.lifecycle.OnLifecycleEvent;

import com.bw.mvvm_common.entity.BaseEntity;

import io.reactivex.Observer;

/**
 * @author KK
 * @description:
 * @date :2021/10/12 14:55
 */
public interface IViewModel extends LifecycleObserver {

    @OnLifecycleEvent(value = Lifecycle.Event.ON_CREATE)
    void oncreate();

    @OnLifecycleEvent(value = Lifecycle.Event.ON_DESTROY)
    void onDestory();

}
